<?php
/**
     * The Language Translation Function
     * @param <string> $language_key - The language key to fetch
     * Language key always made singular.
     */
    function t($language_key){
        $CI = & get_instance();
        $text = $CI->lang->line(strtolower($language_key));

        if($text){            
            return $text;            
        }else{
            // Return the Language Key itself. 
            return ($language_key);
        }

    }
    
    function mdie($data){
        if($data){
            echo("<pre>");
            print_r($data);
        }
        die();        
    }
    
    function ndie($data){
        if($data){
            echo("<pre>");
            print_r($data);
            echo("</pre>");
        }
    }
